<template>
    <div>
        <div class="header-container" :style="{ color: color, backgroundColor: bgcolor, fontSize: fsize + 'px' }">
            {{ title }}
        </div>
    </div>
</template>

<script>
export default {
    name: "EsHeader",
    props: {
        title: {
            type: String,
            default: "es-header"
        },
        color: {
            type: String,
            default: "#fff"
        },
        bgcolor: {
            type: String,
            default: "#007BFF"
        },
        fsize: {
            type: Number,
            default: 16
        }
    }
}
</script>

<style lang="less" scoped>
.header-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 45px;
    text-align: center;
    line-height: 45px;
    z-index: 999;
}
</style>